git-repo-name
Get the repository name from the git remote origin URL.
Install
Install with npm
$ npm i git-repo-name --save
Usage
var repoName = require('git-repo-name');
By default process.cwd()
is used, but you can alternatively specify a different directory as the first argument.
async
repoName(function(err, name) {
});
sync
repoName.sync();
cwd
Optionally specify the directory to use.
async
repoName('foo', function(err, name) {
});
sync
repoName.sync('foo');
Related projects
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert
Released under the MIT license.
This file was generated by verb-cli on November 27, 2015.